﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="CanDoo.Oil.WebApp.proOilProduct.Edit" %>

<%@ Register Src="../UserControls/SelectProductType.ascx" TagPrefix="uc1" TagName="SelectProductType" %>
<%@ Register Src="../UserControls/SelectBrand.ascx" TagPrefix="uc1" TagName="SelectBrand" %>
<%@ Register Src="../UserControls/SelectSupplier.ascx" TagPrefix="uc1" TagName="SelectSupplier" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商品编辑</title>
    <link href="/res/css/common.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="PanelMain" runat="server" />

        <f:Panel ID="PanelMain" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server" Layout="Anchor">
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server">
                    <Items>
                        <f:Button ID="btnClose" EnablePostBack="false" runat="server" Hidden="true"
                            Text="关闭">
                        </f:Button>
                        <f:Button ID="btnSave" ValidateForms="FormEdit" Hidden="true"
                            OnClick="btnSave_Click" runat="server" Text="保存">
                        </f:Button>
                        <f:Button ID="btnToEdit" Hidden="true"
                            OnClick="btnToEdit_Click" runat="server" Text="编辑信息">
                        </f:Button>
                        <f:HiddenField ID="ed_EntityId" runat="server"></f:HiddenField>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:Form BodyPadding="10px" ShowBorder="false" EnableCollapse="true"
                    ID="FormEdit" runat="server" ShowHeader="false" LabelAlign="Right">
                    <Items>
                        <f:GroupPanel ID="GroupPanel1" Layout="Anchor" Title="基本信息" runat="server">
                            <Items>
                                <f:Panel ID="Panel0" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextBox ID="ed_SN" runat="server" Required="true" ShowRedStar="True" Label="条码" MaxLength="50" ColumnWidth="25%">
                                        </f:TextBox>
                                        <f:TextBox ID="ed_Code" runat="server" Label="商品编号" MaxLength="50" ColumnWidth="25%">
                                        </f:TextBox>
                                        <f:DropDownBox runat="server" ID="ed_ProductType" EmptyText="请选择商品类型" ColumnWidth="50%" DataControlID="SelectProductTypeControl_GridList" EnableMultiSelect="false" MatchFieldWidth="false" ShowLabel="true" AutoShowClearIcon="true" Required="true" ShowRedStar="True" Label="商品类型">
                                            <PopPanel>
                                                <f:UserControlConnector runat="server">
                                                    <uc1:SelectProductType runat="server" ID="SelectProductType" />
                                                </f:UserControlConnector>
                                            </PopPanel>
                                        </f:DropDownBox>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel3" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextBox ID="ed_Name" runat="server" Required="true" ShowRedStar="True" Label="名称" ColumnWidth="50%">
                                        </f:TextBox>
                                        <f:TextBox ID="ed_ShortName" runat="server" Required="true" ShowRedStar="True" Label="商品简称" MaxLength="25" ColumnWidth="25%">
                                        </f:TextBox>
                                        <f:DropDownList ID="ed_ProductUnit" runat="server" Label="单位" ColumnWidth="25%">
                                        </f:DropDownList>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel5" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:DropDownBox runat="server" ID="ed_Brand" ColumnWidth="50%" EmptyText="请选择品牌" DataControlID="SelectBrandControl_GridList" EnableMultiSelect="false" MatchFieldWidth="false" ShowLabel="true" AutoShowClearIcon="true" Required="true" ShowRedStar="True" Label="品牌">
                                            <PopPanel>
                                                <f:UserControlConnector runat="server">
                                                    <uc1:SelectBrand runat="server" ID="SelectBrand" />
                                                </f:UserControlConnector>
                                            </PopPanel>
                                        </f:DropDownBox>
                                        <f:DropDownBox runat="server" ID="ed_DefaultSupplier" ColumnWidth="50%" EmptyText="请选择默认供应商" DataControlID="SelectSupplierControl_GridList" EnableMultiSelect="false" MatchFieldWidth="false" ShowLabel="true" AutoShowClearIcon="true" Label="默认供应商">
                                            <PopPanel>
                                                <f:UserControlConnector runat="server">
                                                    <uc1:SelectSupplier runat="server" ID="SelectDefaultSupplier" />
                                                </f:UserControlConnector>
                                            </PopPanel>
                                        </f:DropDownBox>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel9" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:DropDownList ID="ed_Model" runat="server" Label="型号" ColumnWidth="25%">
                                        </f:DropDownList>
                                        <f:DropDownList ID="ed_Specifications" runat="server" Label="等级" ColumnWidth="25%">
                                        </f:DropDownList>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel11" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:NumberBox ID="ed_Weight" runat="server" Label="重量" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:RadioButtonList ID="ed_Unit" runat="server" Label="单位(g/kg)" ColumnWidth="25%" Required="true" ShowRedStar="true">
                                            <f:RadioItem Text="kg" Value="kg" />
                                            <f:RadioItem Text="g" Value="g" />
                                        </f:RadioButtonList>
                                        <f:TextBox ID="ed_Year" runat="server" Label="年份" MaxLength="50" ColumnWidth="25%">
                                        </f:TextBox>
                                        <f:DatePicker ID="ed_MarketTime" runat="server" Label="上市时间" ColumnWidth="25%">
                                        </f:DatePicker>
                                    </Items>
                                </f:Panel>
                                <%-- <f:Panel ID="Panel13" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextBox ID="ed_ImgUrl1" runat="server" Label="图片1" MaxLength="200">
                                        </f:TextBox>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel14" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextBox ID="ed_ImgUrl2" runat="server" Label="图片2" MaxLength="200">
                                        </f:TextBox>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel15" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextBox ID="ed_ImgUrl3" runat="server" Label="图片3" MaxLength="200">
                                        </f:TextBox>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel16" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextBox ID="ed_ImgUrl4" runat="server" Label="图片4" MaxLength="200">
                                        </f:TextBox>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel17" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextBox ID="ed_ImgUrl5" runat="server" Label="图片5" MaxLength="200">
                                        </f:TextBox>
                                    </Items>
                                </f:Panel>--%>
                            </Items>
                        </f:GroupPanel>
                        <f:GroupPanel ID="GroupPanel2" Layout="Anchor" Title="价格信息" runat="server">
                            <Items>
                                <f:Panel ID="Panel25" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:NumberBox ID="ed_MarkedPrice" runat="server" Required="true" ShowRedStar="True" Label="标价" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_DefaultCostPrice" runat="server" Required="true" ShowRedStar="True" Label="默认成本价" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_RetailPrice" runat="server" Required="true" ShowRedStar="True" Label="零售价" ColumnWidth="25%">
                                        </f:NumberBox>
                                    </Items>
                                </f:Panel>
                                <%--<f:Panel ID="Panel29" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:NumberBox ID="ed_VIPPrice1" runat="server" Required="true" ShowRedStar="True" Label="VIP价1" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_VIPPrice2" runat="server" Required="true" ShowRedStar="True" Label="VIP价2" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_VIPPrice3" runat="server" Required="true" ShowRedStar="True" Label="VIP价3" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_VIPPrice4" runat="server" Required="true" ShowRedStar="True" Label="VIP价4" ColumnWidth="25%">
                                        </f:NumberBox>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel32" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:NumberBox ID="ed_TradePrice1" runat="server" Required="true" ShowRedStar="True" Label="批发价1" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_TradePrice2" runat="server" Required="true" ShowRedStar="True" Label="批发价2" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_TradePrice3" runat="server" Required="true" ShowRedStar="True" Label="批发价3" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_TradePrice4" runat="server" Required="true" ShowRedStar="True" Label="批发价4" ColumnWidth="25%">
                                        </f:NumberBox>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel36" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:NumberBox ID="ed_TradePrice5" runat="server" Required="true" ShowRedStar="True" Label="批发价5" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_TradePrice6" runat="server" Required="true" ShowRedStar="True" Label="批发价6" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_TradePrice7" runat="server" Required="true" ShowRedStar="True" Label="批发价7" ColumnWidth="25%">
                                        </f:NumberBox>
                                        <f:NumberBox ID="ed_TradePrice8" runat="server" Required="true" ShowRedStar="True" Label="批发价8" ColumnWidth="25%">
                                        </f:NumberBox>
                                    </Items>
                                </f:Panel>--%>
                            </Items>
                        </f:GroupPanel>
                        <f:GroupPanel ID="GroupPanel3" Layout="Anchor" Title="商品标签" runat="server">
                            <Items>
                                <f:Panel ID="Panel40" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:RadioButtonList ID="ed_FocusTracking" runat="server" Required="true" ShowRedStar="True" Label="重点跟踪" ColumnWidth="25%">
                                        </f:RadioButtonList>
                                        <f:RadioButtonList ID="ed_IsNew" runat="server" Required="true" ShowRedStar="True" Label="新品" ColumnWidth="25%">
                                        </f:RadioButtonList>
                                        <f:RadioButtonList ID="ed_EasyStock" runat="server" Required="true" ShowRedStar="True" Label="易断货商品" ColumnWidth="25%">
                                        </f:RadioButtonList>
                                        <%--<f:RadioButtonList ID="ed_IsOil" runat="server" Required="true" ShowRedStar="True" Label="售油机用油" ColumnWidth="25%">
                                        </f:RadioButtonList>--%>
                                    </Items>
                                </f:Panel>
                                <%--<f:Panel ID="Panel44" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:RadioButtonList ID="ed_IsOilSales" runat="server" Required="true" ShowRedStar="True" Label="售油机" ColumnWidth="25%">
                                        </f:RadioButtonList>
                                        <f:RadioButtonList ID="ed_ExchangeIntegral" runat="server" Required="true" ShowRedStar="True" Label="兑换积分" ColumnWidth="25%">
                                        </f:RadioButtonList>
                                        <f:RadioButtonList ID="ed_FrontDesk" runat="server" Required="true" ShowRedStar="True" Label="前台赠送" ColumnWidth="25%">
                                        </f:RadioButtonList>
                                        <f:RadioButtonList ID="ed_NoIntegral" runat="server" Required="true" ShowRedStar="True" Label="不积分" ColumnWidth="25%">
                                        </f:RadioButtonList>
                                    </Items>
                                </f:Panel>--%>
                                <f:Panel ID="Panel48" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <%--<f:RadioButtonList ID="ed_NoDiscount" runat="server" Required="true" ShowRedStar="True" Label="特价商品不打折" ColumnWidth="25%">
                                        </f:RadioButtonList>--%>
                                        <f:RadioButtonList ID="ed_Enable" runat="server" Required="true" ShowRedStar="True" Label="停用" ColumnWidth="25%">
                                        </f:RadioButtonList>
                                        <f:RadioButtonList ID="ed_ManageSerialNum" runat="server" Required="true" ShowRedStar="True" Label="管理序列号" ColumnWidth="25%">
                                        </f:RadioButtonList>
                                    </Items>
                                </f:Panel>
                            </Items>
                        </f:GroupPanel>

                        <f:GroupPanel ID="GroupPanel5" Layout="Anchor" Title="商品图片" runat="server">
                            <Items>
                                <f:Panel ID="Panel1" ShowHeader="false" ShowBorder="false" runat="server" BoxConfigAlign="Stretch" Width="200px" Layout="VBox">
                                    <Items>
                                        <f:Panel ID="Panel17" ShowHeader="false" ShowBorder="false" runat="server" BoxConfigAlign="Stretch">
                                            <Items>
                                                <f:Image ID="ed_ImgUrl1" ImageHeight="70px" ImageUrl="~/res/images/nopic.jpg" ShowEmptyLabel="true" runat="server" ShowLabel="true" Label="商品图片">
                                                </f:Image>
                                            </Items>
                                        </f:Panel>
                                        <f:Panel ID="Panel18" ShowHeader="false" ShowBorder="false" runat="server" BoxConfigAlign="Stretch">
                                            <Items>
                                                <f:FileUpload runat="server" ID="filePhoto0" ShowRedStar="false" ShowEmptyLabel="true" ShowLabel="true"
                                                    ButtonText="上传图片" ButtonOnly="true" Required="false" ButtonIcon="ImageAdd"
                                                    AutoPostBack="true" OnFileSelected="filePhoto0_FileSelected">
                                                </f:FileUpload>
                                            </Items>
                                        </f:Panel>
                                    </Items>
                                </f:Panel>
                            </Items>
                        </f:GroupPanel>

                        <f:GroupPanel ID="GroupPanel4" Layout="Anchor" Title="商品简介" runat="server">
                            <Items>
                                <f:Panel ID="Panel20" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextArea ID="ed_Outline" runat="server" Label="明细概要" Height="80px" MaxLength="500">
                                        </f:TextArea>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel21" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextArea ID="ed_Explain" runat="server" Label="产品说明" Height="80px" MaxLength="500">
                                        </f:TextArea>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel22" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextArea ID="ed_TechnicalParameter" runat="server" Label="技术参数" Height="80px" MaxLength="500">
                                        </f:TextArea>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel23" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextArea ID="ed_CommonProblem" runat="server" Label="常见问题" Height="80px" MaxLength="500">
                                        </f:TextArea>
                                    </Items>
                                </f:Panel>
                                <f:Panel ID="Panel24" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                                    <Items>
                                        <f:TextArea ID="ed_Remark" runat="server" Label="备注" Height="80px" MaxLength="500">
                                        </f:TextArea>
                                    </Items>
                                </f:Panel>
                            </Items>
                        </f:GroupPanel>
                    </Items>
                </f:Form>
            </Items>
        </f:Panel>
    </form>
</body>
</html>
